/*
 * Copyright (C) 2006, 2007 Jean-Baptiste Note <jean-baptiste.note@m4x.org>
 *
 * This file is part of debit.
 *
 * Debit is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Debit is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with debit.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "design_v5.h"

#define XC5VLX30_NFRAMES 37
static const v5_design_col_t
xc5vlx30[XC5VLX30_NFRAMES] = {
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_DSP48,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_GCLK,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
};

#define XC5VLX30_NBRAMS 2
#define XC5VLX30_NROWS  2

#define XC5VLX85_NFRAMES 63
static const v5_design_col_t
xc5vlx85[XC5VLX85_NFRAMES] = {
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_DSP48,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_GCLK,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
};

#define XC5VLX85_NBRAMS 4
#define XC5VLX85_NROWS  3

#define XC5VLX220_NFRAMES 120
static const v5_design_col_t
xc5vlx220[XC5VLX220_NFRAMES] = {
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_DSP48,
  V5C_CLB,
  V5C_CLB,
  V5C_DSP48,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_GCLK,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_BRAM_INT,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_IOB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
  V5C_CLB,
};

#define XC5VLX220_NBRAMS 6
#define XC5VLX220_NROWS  4
